<template>
    <transition name="fade">
  <div class="container">
      <div class="header">
          <a class="left" v-on:click="back()"><img src="../../assets/back.png" ></a>
          <a v-on:click="del()" class="right"><img src="../../assets/del.png"></a>
          <a class="center">购物袋</a>
      </div>
      <div class="cart-list">
          <div class="item">
              <div class="check-panel">
                  <input class="m-checkbox" type="checkbox" id="cb">
                  <label for="cb"></label>
              </div>
              <div class="img"><img src="../../assets/goods/1.jpg"></div>
              <div class="info">
                  <div class="title">史记（套装共四册）</div>
                  <div class="desc">包装：精装，丛书名： 智品藏书</div>
                  <div class="price"><small>￥</small>200.00</div>
              </div>
              <div class="change-panel">
                  <a class="des">-</a>
                  <div class="count"><input type="text" value="2" /></div>
                  <a class="inc">+</a>
              </div>
          </div>
          <div class="item">
              <div class="check-panel">
                  <input class="m-checkbox"  type="checkbox" name="" value="" id="cb1">
                  <label for="cb1"></label>
              </div>
              <div class="img"><img src="../../assets/goods/1.jpg"></div>
              <div class="info">
                  <div class="title">史记（套装共四册）</div>
                  <div class="desc">包装：精装，丛书名： 智品藏书</div>
                  <div class="price"><small>￥</small>200.00</div>
              </div>
              <div class="change-panel">
                  <a class="des">-</a>
                  <div class="count"><input type="text" value="2" /></div>
                  <a class="inc">+</a>
              </div>
          </div>
      </div>
      <div class="bottom-panel">
          <div class="total-panel" >共<span class="text-red">1</span>件，合计<span class="price"><small>￥</small>1000</span></div>
          <a class="buy-btn" v-on:click="goBuy()">立即购买</a>

      </div>
  </div>
    </transition>
</template>

<script>
export default {
    name: 'shopping_pack',
    data () {
        return {
            edit_text:'编辑',
            show_count:true
        }
    },
    methods:{
		back:function ()
		{
			this.$router.back();
		},
		goBuy:function ()
		{
			this.$router.push('order-confirm');
		}
    }

}
</script>

<style scoped>

    .bottom-panel{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        border-top: 1px solid rgba(0,0,0,0.1);
        overflow: hidden;
    }
    .bottom-panel .buy-btn{
        display: block;
        float: right;
        width: 50%;
        background: #E30000;
        color: #fff;
        text-align: center;
        line-height: 50px;
    }
    .bottom-panel .total-panel{
        width: 50%;
        float: left;
        line-height: 50px;
        text-align: center;
        background: #fff;
    }
    .bottom-panel .total-panel .price{
        font-weight: bold;
        color: #E30000;
        font-size: 1.1rem;
    }
    .cart-list{
        width: 100%;
        padding: 10px;
        margin-top: 60px;

    }
    .cart-list .item{
        overflow: hidden;
        border-bottom: 1px solid #eee;
        position: relative;
        padding: 10px 0;
        height: 100px;
    }
    .cart-list .item .check-panel{
        padding: 5px;
        width: 70px;
        height: 90px;
        border-radius: 5px;
        overflow: hidden;
        position: absolute;
        left: 0;
        top:25px;
    }
    .cart-list .item .img{
        padding: 5px;
        width: 80px;
        height: 90px;
        border-radius: 5px;
        overflow: hidden;
        position: absolute;
        left: 25px;
        top:5px;
    }
    .cart-list .item .img img{
        width: 100%;
    }
    .cart-list .item .info{
        position: relative;
        margin-left: 110px;
        margin-right: 80px;
    }
    .cart-list .item .info .title{
        height: 1.5rem;
        overflow: hidden;
    }
    .cart-list .item .info .desc{
        font-size: 0.8rem;
        height: 2.2rem;
        overflow: hidden;
        color: #999;
    }
    .cart-list .item .price{
        font-weight: bold;
        color: #E30000;
    }

    .change-panel{
        width: 80px;
        position: absolute;
        top:5px;
        right: 0;

        text-align: right;
    }
    .change-panel a{
        display: block;
        width: 100%;
        border:1px solid #f4f4f4;
        background: #f4f4f4;
        text-align: center;
        height: 30px;
        line-height: 30px;
    }
    .change-panel .count{
        width: 100%;
        height: 30px;
        text-align: center;
    }
    .change-panel .count input{
        border-radius: 0;
        width: 100%;
        height: 30px;
        text-align: center;
        border:none;
        border-left: 1px solid #f4f4f4;
        border-right: 1px solid #f4f4f4;
        font-weight: bold;
    }




</style>
